<html>
    <body bgcolor="#EEEEFF">
        <table width="100%">
            <tr>
                <td>
                    <iframe height="225" name="player_info" src="strategy/player_info" style="border:none; width:100%;" scrolling="no">
                    </iframe>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0">
                        <tr>
                            <td colspan="3">
                                <hr>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <table>
                                    <%=form_tag({:action => 'update', :controller => 'strategy'}, :method => 'post') %>
                                    <tr>
                                        <td>
                                            <h3>Your next strategy here:</h3>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <textarea rows="14" cols="50" name="strategy_description"></textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input type="submit" value="Submit Strategy">
                                        </td>
                                    </tr><%=end_form_tag() %>
                                </table>
                            </td>
                            <td valign="top">
                                <table width="100%">
                                    <tr>
                                        <td valign="top" colspan="2">
                                            <h3><%=link_to "Methods that you can use in your strategy", { :action => "actions", :controller => 'strategy' }, :popup => true%></h3>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <b>create_farmer</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <b>farm</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <b>build_barrack</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <b>create_warrior</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <b>attack(player_name)</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <b>my_warriors</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <b>my_farmers</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <b>my_resources</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <b>gift_resources(player_name, count)</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <b>gift_warriors(player_name, count)</b>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td valign="top">
                                <iframe name="commentary" src="strategy/commentary" height="300" width="400" style="border:none" scrolling="yes">
                                </iframe>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <hr>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top">
                                <h3>Your Current Strategy:</h3>
                                <code>
                                    <%=@current_strategy %>
                                </code>
                            </td>
                            <td valign="top">
                                <table width="100%" border="0">
                                    <tr>
                                        <td>
                                            <h3>Player list:</h3>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <%=@players.keys.join(", ") %>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>
